package com.icart.entities;

import javax.persistence.*;

@Entity
@Table(name = "mk_disccardintc", schema = "ams", catalog = "")
@IdClass(MkDisccardintcEntityPK.class)
public class MkDisccardintcEntity {
    private long mouldid;
    private long tcid;
    private Integer tcount;

    @Id
    @Column(name = "mouldid")
    public long getMouldid() {
        return mouldid;
    }

    public void setMouldid(long mouldid) {
        this.mouldid = mouldid;
    }

    @Id
    @Column(name = "tcid")
    public long getTcid() {
        return tcid;
    }

    public void setTcid(long tcid) {
        this.tcid = tcid;
    }

    @Basic
    @Column(name = "tcount")
    public Integer getTcount() {
        return tcount;
    }

    public void setTcount(Integer tcount) {
        this.tcount = tcount;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MkDisccardintcEntity that = (MkDisccardintcEntity) o;

        if (mouldid != that.mouldid) return false;
        if (tcid != that.tcid) return false;
        if (tcount != null ? !tcount.equals(that.tcount) : that.tcount != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = (int) (mouldid ^ (mouldid >>> 32));
        result = 31 * result + (int) (tcid ^ (tcid >>> 32));
        result = 31 * result + (tcount != null ? tcount.hashCode() : 0);
        return result;
    }
}
